package com.bys.admin.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.bys.config.BaseEntity;


import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 代码生成 column 表
 * </p>
 *
 * @author bys
 * @since 2025-02-20
 */
@Getter
@Setter
@TableName("sys_codegen_column")
@Schema(name = "SysCodegenColumn对象", description = "代码生成 column 表")
public class SysCodegenColumn  extends BaseEntity {

    private static final long serialVersionUID = 1L;



    @Schema(description = "表编号")
    private Long tableId;

    @Schema(description = "字段名")
    private String columnName;

    @Schema(description = "数据库字段类型")
    private String dataType;

    @Schema(description = "字段描述")
    private String columnComment;

    @Schema(description = "是否允许为空")
    private Boolean nullable;

    @Schema(description = "是否主键")
    private Boolean primaryKey;

    @Schema(description = "排序")
    private Integer ordinalPosition;

    @Schema(description = "Java 属性类型")
    private String javaType;

    @Schema(description = "Java 属性名")
    private String javaField;

    @Schema(description = "字典类型")
    private String dictType;

    @Schema(description = "数据示例")
    private String example;

    @Schema(description = "是否为 Create 创建操作的字段")
    private Boolean createOperation;

    @Schema(description = "是否为 Update 更新操作的字段")
    private Boolean updateOperation;

    @Schema(description = "是否为 List 查询操作的字段")
    private Boolean listOperation;

    @Schema(description = "List 查询操作的条件类型")
    private String listOperationCondition;

    @Schema(description = "是否为 List 查询操作的返回字段")
    private Boolean listOperationResult;

    @Schema(description = "显示类型")
    private String htmlType;



}
